package com.ruiysoft.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiysoft.entity.sys.SysShopPersonnelRelation;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-17
 */
public interface ISysShopPersonnelRelationService extends IService<SysShopPersonnelRelation> {

    void insertIgnore(Long shopId, Long sharingId, Long personnelId, Integer identityType);

    void insertIgnore(SysShopPersonnelRelation sysShopPersonnelRelation);

    SysShopPersonnelRelation selectByShopIdAndPersonnelId(Long id, Long personnelId);

    void updateShopPersonnelRelation(List<SysShopPersonnelRelation> relations);

    void setDistributionRelation(Long shopId, Long personnelId, Long partnerId);

//    void saveOrUpdate(Long shopId, Long personnelId, Integer shopkeeper);
}
